package com.xjh.him.core.netty;

public class Constant {
    /**
     * 标识分组是否使用本项目协议
     */
    public static final byte MAGIC_NUM = 36;

    /**
     * netty LengthFieldDecoder 最大消息长度
     */
    public static final int MAX_FRAME_LENGTH = Integer.MAX_VALUE;

    /**
     * netty LengthFieldDecoder 报文中长度字段偏移量
     */
    public static final int LENGTH_FIELD_OFFSET = 2;

    /**
     * netty LengthFieldDecoder 长度字段大小
     */
    public static final int LENGTH_FIELD_LENGTH = 4;
}
